/**
 * This Class will declare the Laptop array and stores & displays the laptop details using For Each loop or Enhanced For Loop.
 * 
 * @author Ravi
 *
 */

public class LaptopForEachLoopDemo {

	public static void main(String[] args) {
		Laptop[] laptopArray = new Laptop[3];
		
		Laptop laptop1 = new Laptop();
		laptop1.make = "HP";
		laptop1.model = "DV-6000";
		
		Laptop laptop2 = new Laptop();
		laptop2.make = "Del";
		laptop2.model = "ALW-17";
		
		Laptop laptop3 = new Laptop();
		laptop3.make = "Sony";
		laptop3.model = "VAIO";
		
		laptopArray[0] = laptop1;
		laptopArray[1] = laptop2;
		laptopArray[2] = laptop3;
		
		for(Laptop temp : laptopArray){
			System.out.println("Laptop Make = " + temp.make);
			System.out.println("Laptop modle = " + temp.model);
		}

	}

}
